package com.wangshouyu.mp.pay.v3.transactions;

import com.wangshouyu.mp.pay.v3.common.request.BaseV3PayRequest;

import java.util.Objects;

/**
 * @author 王守钰
 * @program wsy-mp-pay
 * @date 2020年08月15日 00:47
 * @description: 关闭订单请求
 */
public class TransactionsCloseRequest extends BaseV3PayRequest {

    /**
     * 商户订单号
     */
    private String outTradeNo;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        TransactionsCloseRequest that = (TransactionsCloseRequest) o;
        return Objects.equals(outTradeNo, that.outTradeNo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), outTradeNo);
    }

    @Override
    public String toString() {
        return "TransactionsCloseRequest{" +
                "outTradeNo='" + outTradeNo + '\'' +
                '}';
    }
}
